package com.orkasgb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * 公共实体类，所有实体类的父类
 *
 * @sine 2024-09-19
 */
@Data
public class CommonEntity implements Serializable {
	
	@TableField(exist = false)
	private int current = 1;
	
	@TableField(exist = false)
	private int pageSize = 10;
	
	@TableField(exist = false)
	private int offset = 0;
	
	public void setOffset () {
		this.offset = (this.current - 1) * this.pageSize;
	}
	
}
